package com.gis.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gis.entity.Publish;
import com.gis.mapper.PublishMapper;
import com.gis.service.IPublishService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 数据图层发布表，存储发布图层相关数据 服务实现类
 * </p>
 *
 * @author bobo
 * @since 2024-11-02
 */
@Service
@RequiredArgsConstructor
public class PublishServiceImpl extends ServiceImpl<PublishMapper, Publish> implements IPublishService {
    private final PublishMapper publishMapper;

    @Override
    public List<Publish> getPublishByType(String type) {
        // 写方法 查询生物数据库类型数据
        LambdaQueryWrapper<Publish> wrapper = new LambdaQueryWrapper<Publish>()
                .eq(Publish::getPublishType,type);
        return publishMapper.selectList(wrapper);
    }
}
